package cn.jaye.fabric.infrastructure.mybatis.impl;

import cn.jaye.fabric.domain.model.History;
import cn.jaye.fabric.infrastructure.mybatis.impl.mapper.HistoryMapper;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author Jaye
 * @create 2018-06-04 14:41
 */
@Repository
public class HistoryRepositoryImpl extends ServiceImpl<HistoryMapper, History> {

    @Autowired
    private HistoryMapper historyMapper;

    public JSONArray getCount() {
        return historyMapper.getCount();
    }

    public void batchUpdateState(String username) {
        historyMapper.batchUpdateState(username);
    }
}
